Try to implement my "search" approach as a function

See if it can be wrapped up and made to take variable-arity series, plus
optionally allow the caller to specify a search length which may be <
len(search_series).