Simple Tree and search implementations

This also includes a function for searching Trees composed of routes.