add sqrt and rsqrt methods