add distance matrix + match data