Artificial intelligence can 'evolve' to solve problems