Array and Heap Priority Queues Implementation