heap: Change type of "priority" in "struct heap".