quick sort and heap sort with test case