Parallel Algorithms for Nonsmooth Optimization