Better support sorting on percentile sub-aggs where conversion from string to double may loose precision

- Added support for tolerant binary search over double arrays