Bugfix for wrong use of iterator with multi threading
Refactor partition function to range adaptor
Refactor of partition_bounds
Fix template argument deduction bug, the two range version of
transform made problems when the last default argument of the
singel range transform was seted