More acceleration maths.

* Refactored lookahead code to compute everything in dda steps.

* Replaced RAMPING iterative scheme with an approximation of the explicit
  formula (sqrt(n+1)-sqrt(n) ~ 1/(2*sqrt(n)))