Modify tabulate-region to eliminate recursive calls causing it to blow the stack for large regions.