Add function: split_array()