How to Implement Stack Using Priority Queue or Heap?