quicksort algo implementation - 2nd week assignment