Added fallback, pruned sub-sentences.

Two things:
	* Added a fallback function if there is no valid path from a start
	  an end node of the specified length; function just takes the
	  first path to depth.
	* Pruned generation of sub-sentences (filters next states which
	  nodes out of the candidates).