Stores coordinates of a cell and its distance
class Node { public Point pt ; public int dist ; } ; static Node newNode ( Point p , int dist ) { Node temp = new Node ( ) ; temp . pt = p ; temp . dist = dist ; return temp ; }