Refactored all uints in pathfinding to ints for CLS compliance.
Created nested classes MathHelper.Distance and MathHelper.Intersection to group those kinds of methods together.
Moved some methods out of PathfinderCommon.cs