kernel code test: heap sort