struggle with quick sort!