Adding code for convex optimization implemented from various papers