* Revised otsu algorithm code + refactored just a small bit