SMS: Analyzing animal societies