Divides array into chunk