If you've ever wondered what the curved ends on the sides of a plane's wings are for, this is what they do.