Array_group - Divide an array into groups.