Quick modification to help understand the computation of the minimum distance
Merge done