If M is a module in a polynomial ring R, then the implementations of top and removeLowestDimension are based on the following observations: