Implementation of a programmable array processor architecture for approximate string matching algorithms on FPGAs