Extend hash class with different hash algorithms