Working basic genetic algo