add simplifyPath.cpp