Major fix for priority/payload

Decided on a solution for how to extract the priority from the elements
in the heap, the rest is considered payload. This fix works well with
updating the priorities.