Sparse matrices: Added clear() member function.

This way a user can conveniently free memory. Resolves #98.