Dynamic programming for convex clustering
