Revert "Use simple iterators for a bit more speed"

This reverts commit cb02706c9390523b76790bf9cce286b38b1cb756.
Speed up inner loop, check is_palindrome last