Denoising aCGH data, in general fitting piecewise constant segments to a 1d signal