Fix median calculation formula
Merge pull request #13 from saminiir/topic/fix-statistics-calculation

Fix median calculation formula