Adding testing for heapsort