Quick sort divided into two