Implementation of Quick Sort on array