Distances for computing the CM distance