Use iterators instead of Array::{map_mut, bimap_mut, fold}