Statistics for Graph Based Keyword Spotting in Handwritten Historical Slavic Documents