more flexible joinranges for ngrams
update comment in ngramtable
more efficient, space-eliding all_subs