add hash and isEqual to MMBuffer