Solving Non-smooth Dynamic Problems using the Alternating Direction Method of Multipliers