reindent multi_index to make templates more clear and remove functors to be replaced by inline lambdas