ENH Allow loc(min|max) to operate on floats

This was a needless restriction
ENH Add Bernsen local thresholding

Simple Python implementation of Bernsen local thresholding