Fix isodata-thresholding according to Zachary Pincus

The whole test file takes 0.117s on my system. The threshold_isodata part an insignificant part thereof. Given that we loose the test return_all=True|False with your suggestion, I suggest we leave it as is.