Part 1: Gates and circuit representation in Scheme