fixed percentile method for edge cases
Merge pull request #1 from michaelcrismali/master

fixed percentile method for edge cases