Why not use standard Java PriorityQueues?