move dps_heapsort into libdp