parallel, reorg, string structures,threadsafe rnd

added in not mine parallelization code,thread safe rand and trie. extra
utility functions
sampleOne