added distance calculations for genetic cross mapping