More testing added to the generic heapsort function, it is quite slower than the bare metal competitor.