Added support for calculating procentile on a non-normal distribution
Added tests anf fixes