[algorithm] (new:minor) Function to reorder the content of a container according to a given permutation of indices.
[algorithm] (bug-mix:minor) Qualified occurences of size_t type. Added missing cstddef include. Fixed some typo.