fix: very large document processing now take linear time to process (instead of exponential because of a quick hack, which has been replaced by the proper thing to do)