Heapsort and LinkedList