Maths developed by Alan Turing used to understand bird behaviour