Implementing the Supersmoother algorithm