Modify the distance function between two records with considering time

use hyperDistance which is distance in spaital and time.