Replace recursion by a stack and divide only the necessary dimensions #21
The method used before is Ok for the equator but for the poles it is very wrong! I'm using the Vicenty formula from http://en.wikipedia.org/wiki/Great-circle_distance
Here is the result from the master branch:
and here the current result from this branch:
Seems that when there are a lot of divisions happening, the advantage of a stack becomes more pronounced.