flatten package:massiv

O(1) - Reduce a multi-dimensional array into a flat vector
O(1) - Change a mutable array to a mutable vector.