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