Algebraic algebras with involution