Last modifications on k-means and Otsu's method.

Otsu's method implemented, used big part of the interwebz to get
started. Concept is clear now.