CS110 Assignment 3 - Optimization