Better Algorithms through Faster Math