Implement MathProgBase API changes

Fix #3