quickly solved palindrome partioning problem, prolly not most efficient solution...
memoizing for better performance
updating syntax