ADDED: distance matrix, still testing accuracy