Fixed priority queue dequeue method bug. Added toArray method for both data structures.