simple diff match path implementation