Primitive text direction feature detector

v.1.1 of text direction feature detector :)
Which histogram? Please assume person reading this comment is not familiar with the code.