Insects such as ants and beetles use ingenious processes in their brains to work out how far they’ve travelled and in what direction - we’ve now discovered how they remember their way home.