Improved precentil computation