Added cbegin and cend in tensor.h and tarray.h