Extending the library with an algorithm for calculating palindromes.