Compute median time instead of mean

Resolve #5