This adds a tabulate() algorithm which fills a range with values calculated from a function given each elements index.