Calculate median only on a subset of pings.
Increase the maximum subset of pings to 100000.
Merge pull request #61 from vitillo/master

Fix out of memory error for mainthread-io job.