add auto resize to priority queue