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.
by 2.7+ I mean it works in all versions of python >= 2.7 (so 2.7.x and 3.y).