parallel pLSA code