recursion in kepler solver doesn't compile on GPUs. This is an attempt to fix that problem.