include multithreaded partition function and update documentation