Create initial system for percentiles

This is the formula for calculating percentiles.