Add merge_upward tool
move merge_upward to tools folder