Added a new function, wildmatch_array(), that lets the caller pass