updated factorials
updated palindrome testcases
updated parentheses tests