Modern mathematical tools can provide police forces with a greater understanding of how crime and criminal gangs work