Seconf iteration for classic algorithms