Write up the algorithm draft for distance aware selection based mapper