added ripleykfunction and create_distance_matrix