Merge pull request #12 from chrox/master

add auto detection of word spacing
Merge pull request #13 from chrox/master

more robust algorithm to calculate gap size
apply tessedit.cpp patch