genetic search

basic functional version of genetic search