Priority Queue offer() and poll() with test cases