moved circuit builder to logic package and out of logic.elements package