continuum_removal function

Continuum removal