Method to renew priority of an object

Needed this for an A* algorithm implementation. Maybe you want to merge it.