Archimedes' doubling method