Build an array-based priority queue