Create initial system for percentiles

This should eventually be moved to a util, but I wanted to avoid putting more complexity into this PR