Added transpilation of JS functional forEach into clrscode for loops