test
Implemented GA alg.