Implement an ireduce method
Rewrite loops to use ireduce where possible