matrix_mutual_reachability_distance function

Function that calculates the mutual reachability distance within a matrix