Updated "for" functionality.

Added an caching to the "len" of every for.
Merge pull request #2 from ThePanuto/patch-2

Updated "for" functionality.