Split search.rs to path.rs and traversal.rs