added function for calculating ripley cis to distance_functions