Implementation of standard pattern matching algorithms using 'C'