Square root of a symmetric matrix