Implemented value_at_percentile