Nonsmooth Optimization Algorithm for Solving Clusterwise Linear Regression Problems