I made this simple algorithm that checks for occurences of a pattern in a string. More specifically, given string a and string b I want to find
string a
string b