Using genetic algorythm for "investments" task