Algorithms in convex analysis applied to Multidimensional Scaling