Reliable numerical algorithms for the Non-linear Fourier Transform of the KdV equation