Add implementation of hashCode2