Fixed double deallocation in case where matrix was already cleared manually.
Work on matrix market reading. Example: input_output