GridSuccessorNodes:

--------------------------------------------------------------------------
   Finds successor nodes in a square grid.
--------------------------------------------------------------------------
   Form:
   successorNodes = GridSuccessorNodes( node, parent, d )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   startNode     (1,1) Id of start location
   goalNode      (1,1) Id of next location
   d             (1,1) Data structure
                       .n      (1,1) Number of nodes

   -------
   Outputs
   -------
   successorNodes (1,:)  List of nodes in path 

--------------------------------------------------------------------------