actually i want to implement the best first search algorithm
but i am confused to use queue or array
and dont know how to display according to cost of the nodes of a graph in this program