Fix heapsort bug and add ksort tests
Fix heapsort bug and add ksort tests: a task in life-science-SWE1.0 (Harbor dataset). Title: Fix heapsort bug and add ksort tests
The task
**Title:** Fix heapsort bug and add ksort tests
Part of scalingX/life-science-SWE1.0.