Add new balanced optimal solver.

Refactored the cplex adapter classes.