Stores coordinates of a cell and its distance
class Node { constructor ( ) { this . pt = null ; this . dist = 0 ; } } ; function newNode ( p , dist ) { var temp = new Node ( ) ; temp . pt = p ; temp . dist = dist ; return temp ; }