adds PriorityObject and DijkstraPriorityObject and its test