moduloNext, given a dimension and a location, adds the next location to the calculation shape.
moduloNext(Dimension d)