Manhattan and hamming priorities