square root of a matrix linear algebra