[index] redistribute_elements - use temporary container differently (R*) and add some comments