Added C++11 code to use new for-loops. Added GroupByContainerTraits