A fast one dimensional total variation regularization algorithm