Performance test for heap sort