Solves Kepler's equation numerically using c++