Wrote most of the gentic algorithm bit