public reshape(rows as Int, cols as Int) as NDArray<T>:
Reshapes the NDArray using two dimensions.
A new reshaped NDArray.