Ferrolho: updated dual palindromes code