Modified quicksort to sort floating values also