Fixed signedSqrt error - thanks Alex