finished genetic cross mapping function