Code to fully solve the Archimedes Cattle Problem.
Improved Chakravala implementation; handles cases with remainders of +/-1, +/-2, +/-4.
Chakravala which first automatically removes square factor.
Example bhaskara_squarefree solve - handles the Pell equation with D = 100000000001 in 6 seconds.