Fixed minor bug with buffer
Optimizing GreatCircle