use threads to speed up processing - divide the rules, not the sentences

Depends on the thread-safety patch to work.