Added complex palindrome functionality

@theqabalist Can you please review this for me?