modified Sph2Cart fct to replace pointers + fct SphHarSample to sample spherical fct for spherical harmonics