modify the distance function in assembly.geneticmap to be robust to outliers