implements the given description http://en.wikipedia.org/wiki/Percentile_rank