init function + call init in clean so that ahocorasick struct can be reuse