add 4.7 lca

Signed-off-by: Wei Jin <wjin.cn@gmail.com>
add recursive solution for wildcard matching

Signed-off-by: Wei Jin <wjin.cn@gmail.com>