Code for Discrete Optimization coursera