save(lp): speeding up by using the number of sparse elements in a row

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