Percentile calculation. Typo fixed.
Removed unreached code