Changed forEach to for in constructor and concat

Added a performance gain by changing forEach to for loop.