Create initial system for percentiles

This could also be in utils