make percentile calculation much simple and little slower (in 3.5 times)
change tests