commited out SparseMatrix_free(ma); in main.cpp (Bug on Linux machine which needs to be fixed)