hashCode

Computes a hash code for multiSet, consistent with equals.