Amid a shaky marketplace, investors are eyeing the yield curve for signs of economic stability. History shows that when the yield curve inverts, a recession may soon follow.