fixed a bug in Matrix Market file IO

Fixes #20