code: public double[] surrounding( int col, int row ) {
          GridNode node = new GridNode(iter, cols, rows, xRes, yRes, col, row);
          List<GridNode> surroundingNodes = node.getSurroundingNodes();
          double[] surr = new double[8];
          for( int i = 0; i < surroundingNodes.size(); i++ ) {
              GridNode gridNode = surroundingNodes.get(i);
              if (gridNode != null) {
                  surr[i] = gridNode.elevation;
              } else {
                  surr[i] = HMConstants.doubleNovalue;
              }
          }
          return surr;
      }
docs: Get the values of the surrounding cells.
  
  <b>The order of the values is [E, EN, N, NW, W, WS, S, SE].</b>
  
  @param col the col of the center cell.
  @param row the row of the center cell.
  @return the array of cell values around them as [E, EN, N, NW, W, WS, S, SE].