Added some extension methods and updated some containers

ListMapping, Bag, NaiveBayes, etc. classes are now either thread safe or
make use of TPL a bit more.
Added some extension methods for ConcurrentBag and ConcurrentDictionary.