Added a test program that compares the estimated percentiel with the one calculated by Apache math libs. Seems to work for larger inputs but not for very small inputs [0,1]. Float precision might be a cause.