ENH : bin_edeges helper function

Adds helper function + tests for generating bin edges from
any sub-set of the maximum, minimum, step, and number of bins.
Related to my comment above; shouldn't the users maximum value be included in the bin range?