add comments for ComputeDistances
haskell is ready