Minimizing Sum of Non-Convex but Piecewise log-Lipschitz Functions using Coresets