[index] Increase readability of redistribute_elements-related code.

Convert struct to functions templates (pick_seeds() functions).
Move template parameters from struct level to method level.
Both for automatic type deduction.