Quick sort & tests