Use cheap way of removing dependent equations instead of qr.  Added
support for mosek
Dual reductions done using sparse data structures.