Fixed typo in NDIterator::__decrement()
Slight optimization of NDIterator::__increment() and __decrement().
Added method bool NDIterator::valid() to test if operator* references valid tensor element.
Added shape_type::value_type NDIterator::index(size_type n) method to get current value of nth index.