HeapSort, Adjacency matrix.

Heapsort, and adjacency matrix added to the chunk.