Added class to allocate circuits in a CircuitSimulator.