Generics in heapsort.