Implementation of genetic algorythm for simple object