M: add 'combine' method for combine two paths into one.