Tabulating the cartesian-to-spherical transformation matrices for one basis function
minor refactoring (cherry pick)
Cleaning up the cherry pick - Numerical stability bug fix

Only the Gaussian orbital version is kept on this branch.