MOD: rename distance function name to computeDis because distance has used by system