adding bit on recur's functionality
lazy quicksort