upgraded ArrayList to PriorityQueue

as title states. runs faster.