Add Percentiles.Result type to contain results from percentile computations

The existing type signatures were getting ridiculous and not-particularly self-explanatory,
and we wanted to add a count to the result, so having a separate type for it seemed
like the obvious thing to do.
Should Result be serializable?