The crucial role of chaos in our brain's most extraordinary functions