$N$-Wave Type Systems and their Gauge Equivalent Related to the Orthogonal Algebras