std::max takes a double, not a DistanceType
Merge pull request #41 from asmaloney/fix_max

std::max takes a double, not a DistanceType