Re-implemented Priority Queue

- Created faster priority queue implementation based on heap rather than
linear array.