Removed buffer overflow debug code
Switched to bare array-based heap from PriorityQueue{K,V} to increase the speed.