construction of pairwise independent hash function