Generalizing hamming distance to finite sets by M.A. Bezem