add distance matrix example