Please define the variable N. (Is it the number of dimensions of x?) It is used in the text with out definition.