A Combinatorial Algorithm to Compute Regularization Paths