First version of changepoint kernel