Automatic problem solver based on circuit-like representation and genetic programming