Generic type for key as well as value