Singular Value Decomposition of the Radial Distribution Function for Hard Sphere and Square Well Potentials