Added HashMapClass. The class is allowed to have duplicated keys by setting hashcode to 1.