Implement Fp sqrt, chi and div2