adding new statistic calculating functions
Merge branch 'ShabihsBranch'