Added hash functionality to MonoMonoid. Still need more tests.