Minor performance improvements for the QDIMACS formatter
Moved the general tree structure check into the sanity check block of
the addInput method