it works well for all kind of integer lists. What's wrong ?