Added a method to get a HashMap object from a MatrixMarket string (almost the same as from a file).