add tailored Euclidean distance to operate on the first set of subspaces of 3 dimensions