add PalindromePartitioning and GrayCode