Make triangle a hahable object.