nlOrder function

Get the order of the nonlinear chaotic invariant.