Fixed medianBin not working according to it's docstring