2 new methods, several little fixes

2 new methods (in NumericTools and CollectionTools) with corresponding
unit tests, little fixes in NumericTools.