Create simplifyPath.cpp