Words near XYZ matrix in the dictionary