Revert "Implement fast squareroot function and use it throughout mathlib.c"

This reverts commit f6967b4b56ae34cd73807419c43c9b64389ef9c5.