Spectral methods in general relativity -- toward the simulation of 3D-gravitational collapse of neutron stars