perf(library/init/data/list/basic): avoid naive quadratic implementations
perf(library/init/data/list/basic): avoid naive quadratic implementations

leanprover-community/lean,leodemoura/lean,leodemoura/lean,fpvandoorn/lean,dselsam/lean,avigad/lean,Kha/lean,leodemoura/lean,leanprover-community/lean,rlewis1988/lean,digama0/lean,avigad/lean,rlewis1988/lean,fpvandoorn/lean,fpvandoorn/lean,johoelzl/lean,dselsam/lean,fgdorais/lean,fpvandoorn/lean,leanprover/lean,fgdorais/lean,dselsam/lean,leanprover/lean,Kha/lean,johoelzl/lean,avigad/lean,johoelzl/lean,fpvandoorn/lean,leanprover/lean,rlewis1988/lean,fgdorais/lean,digama0/lean,fgdorais/lean,avigad/lean,johoelzl/lean,fgdorais/lean,dselsam/lean,dselsam/lean,digama0/lean,leanprover-community/lean,johoelzl/lean,fpvandoorn/lean,avigad/lean,Kha/lean,fgdorais/lean,digama0/lean,leanprover/lean,leanprover/lean,rlewis1988/lean,leanprover-community/lean,Kha/lean,johoelzl/lean,leanprover-community/lean,rlewis1988/lean,avigad/lean,Kha/lean,leodemoura/lean,dselsam/lean,Kha/lean,leanprover-community/lean,leanprover/lean,leodemoura/lean,digama0/lean,rlewis1988/lean,digama0/lean,leodemoura/lean