Optimize bubble-sort, speeding up by about 1.5x, and run timing tests