NLG trying to find template subsets

I have implemented a simple greedy algorithm that tries to find templates covering the next DAIs from the current position. The longest matching template is selected at each step.

It is now possible to create sub-templates consisting of more than one DAI (a few examples added to nlg_templates.cfg of PTICS).