Various stylistic improvements

Key change was made to `percentile.rb` to improve readability.