Updated HashCode and Equals methods for
Square and Rectangle, both are tested.