SMS: Convex optimization algorithms