Maps, heapsort