Reducing insertion sort space complexity.