Circuit Implementation

Created code for circuit.cpp and circuit.h