A new chaos detector