hashmap and treeset comparison of user defined objects

hashmap @equals and @hashcode overrides added, and treeset @compare