reduced memory in caching partition function of tokens
used expsum to prodexp technique for speedup
multithreading working