The classification of algebras of level two