Adaptation of global Otsu for the its new implementation

* The vector histogram was replaced by an integer array.