Priority Queue Using Array Java