improve test functions
implement heapsort