Restored quicksort.rb to previous version for better memory usage.