A fast VLSI solution for approximate string matching