Added Within function.

Within is useful for finding the bin of a datapoint, for example when making a histogram or otherwise trying to find similar points. This commit adds the function and tests.
According to the implementation as I see it, you don't need to add a NextAfter, you just need to duplicate the max item. This may seem ugly, but I don't see it as any less ugly than changing the way the coordinate system works at a boundary.