Wildcard Matching - Greedy and Backtracking