Find all matches of a small string str2 in a big string str1.
Return a list of every starting index where str2 occurs in str1, including overlapping matches. Implement find_matches(str1, str2) using an efficient string-matching algorithm.
The input strings contain ordinary characters, str2 is non-empty, and an empty result is valid when no match exists. Return indices in ascending order.
def find_matches(str1, str2):