Finding the rotation matrix for a rigid body rotation (SVD)

Using Singular Value Decomposition (SVD) to calculate the rotation matrix for an (unknown) rigid body rotation using the method here: "SVD is like this powerful magical wand in linear algebra for solving all sorts of numerical problems, but tragically wasn’t taught when I was at uni"