rudimentary genetic algo