fixed a bug in TreeGrammarDecomposition when dealing with cases where n>2 (n = number of non-terminals)

git-svn-id: http://gapt.googlecode.com/svn/trunk/source@2099 85d21ef8-add0-11de-ae77-5bfb9c5a3f34