item set hash calculation