Topics in convex optimization for machine learning