PriorityQueue to ArrayList