kmacs: the k-mismatch average common substring approach to