add own heuristic functions to statistics, extracted class for StatisticView
fixed sorting of data in a window, added length-heuristic