Refactor MultiHash and separate out HashBase class.
Add SimpleHash template class.