add average QP in statistics
Merge pull request #1633 from lyao2/avg_qp2

add average QP in statistics