Big change, Distance -> MathUtil

Automatically refactored, references need not be changed