A classication of nonlinear systems based on the invariant subdistribution algorithm