Added shrink and expand methods to Dimensions2 class, added testing framework.