Parallelization and Characterization of Pattern Matching using GPUs