Update pyahocorasick.py

make the failure_link function more efficiency