fn boot_process( input: &Grid<u8>, size: i32, base: i32, fourth_dimension: &[i32], ) -> usize
Re-use logic between both parts.