priority(key) {
    var index = this._keyIndices[key];
    if (index !== undefined) {
      return this._arr[index].priority;
    }
  }
Returns the priority for **key**. If **key** is not present in the queue
then this function returns `undefined`. Takes `O(1)` time.

@param {Object} key