clean up algorithm. still fighting with div-by-zeroes in the fitness sliding window