Simple and efficient string matching with k mismatches