Update simplifyPath.h