Fixed bug when reading comments on dimacs input.
Added a test case for it.