Separated crypto functions, putting them in a separate header
Optimized the fast square root calculation
Put xprec and vecmat inside the math namespace
Added missing "using namespace math;"
Fixed incorrect declaration of fp sqrt(fp x)