Adds a menu tree browsing function using recursive methods

Signed-off-by: yujun-wang <wangyujun.bond@gmail.com>