Add statistic.py provides a common statistic calculation API (Ch3)