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