http://geographiclib.sourceforge.net
There is a python implementation available as well. http://pypi.python.org/pypi/geographiclib