Added serialized brute force algorithm