Added contains method in Circuit.
Added 2D representation for Circuit.
Fixed simulation input queue error.