Implement Priority Queue Using Array Java