Boundary values for quantile corrected and tests added but still don't deal with infinity well. TODO still.