Implementing sparse_matrix

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