finished Quick sort