Built a generic type struct to model a map with hashing.