Implemented a caching digit extractor for square roots.