add distanceMatrix L2R, R2L, B2T