Found THE bug in radix sort. Keep in mind for the future: functors should be copied, not passed by reference