break array into specified number chunks of roughly equal size