Dijk - Initial version; minheap working.