Testing optimizations
Finished optimizing algorithm