Quicksort on array