Priority queues (made with heaps) are just a spectial kind of balanced binary tree. Do you know how to make a binary tree?