compare different string searching algorithms