statistics.h: update ComputeMedian to prevent modifying input
Update ComputeMedian to prevent modifying the input.
This didn't seem to be an issue up to now as in all the occurences, the input vector in not reused after the call to ComputeMedian, but it will become in !14 (merged)