Added implementation of quicksort