Included priorityQueue for UCS but program is not working properly