Statistics: Median direct implementation instead of R8-compatible 0.5-quantile