Changed as a comparison between recursive menoization and loop

A comparison  between loop and recursive
Tests show that loop is faster than recursive with memoization.
Also the single run seems to be faster then sample runs that are done in the benchmark tasks.