1- access out of bound memory in toFlatIndex 2- CreateFromNPArray function is 50> 3- duplicate variable init
- cleanup work on createTensor and Tensor's constructors