Primitive text direction feature detector

v.1.1 of text direction feature detector :)
https://ru.wikipedia.org/wiki/Численное_дифференцирование
Take a look on a formula for r=1 and n=3, probably it'll make some sense for first and last point (if you need them of course)