An information-theory approach to geometry for animal groups