Removing a double-semicolon
Clearer code (resize(0) == clear())
Also clear and delete orGates under GateFinder
GateFinder doesn't allocate space until later, so only check mem later