Gaussian Processes for fitting spectral lines