VIVA: An Online Algorithm for Piecewise Curve Estimation Using ℓ0 Norm Regularization