Sped up the precomputed inverse code and added a crossover.