Genetic algortithm base