Analysis of Variance based on the Hamming Distance