getBinInfo function

Gets the lower and upper limit and index of a tsd bin