add addBinary, simplifyPath, and validPalindrome