Remove perpendicular distance call

Since we know that the MBB is axis aligned we can compute
the distance to the line segments a lot simpler.
Add test for new GetMinDist