add solution for simplifying path.