save(lp) : cleaning up sparse_matrix and fixing a bug in pivot choosing

Signed-off-by: Lev Nachmanson <levnach@microsoft.com>