A simple priority queue implemented with a heap data structure