added gettopkey func to priority queue and changed compute shortest path so that it gets the right old_key