speed and neat things like std:map. i tried xe tdictionary but it was unable to make same work as my c++ code. i got wrong results. dunno if tdictionary allows using custom sort routine.
i think problem was exactly in that.