function transpose (x, axes) {
  return NdArray.new(x).transpose(axes);
}
Permute the dimensions of the input array according to the given axes.

@param {(Array|NdArray|number)} x
@param {(number|...number)} [axes]
@returns {NdArray}
@example

 arr = nj.arange(6).reshape(1,2,3)
 // array([[[ 0, 1, 2],
 //         [ 3, 4, 5]]])
 arr.T
 // array([[[ 0],
 //         [ 3]],
 //        [[ 1],
 //         [ 4]],
 //        [[ 2],
 //         [ 5]]])

 arr.transpose(1,0,2)
 // array([[[ 0, 1, 2]],
 //        [[ 3, 4, 5]]])