Implementing Priority Queue Using List