Refactored Failure scanner.
Code has been simplified and is now using a Boyer-Moore algorithm to increase performance on large files.