Frequent word matching in a genome