[multi][algorithm/detail] Move most of the code of details from multi/ directory.

This commit doesn't move for_each_range.
Details used only by multi/algorithms aren't moved as well.
[multi] Move algorithms details used only by multi/algorithm from multi/ directory.
[algorithms/detail] Refactor for_each_range and move it from multi/directory.