added diagRoots(m),this func calculates the square root of diagonal blocks