Eventually we end up with a matrix D, which is diagonal to requested precision. The obtained transformation is: