Added histogram bootstrapping
added debug output
added Ostu thresholding