Quicksort and Binary search implementation