Implemented NDIterator for general purpose (maybe slow)
Added use case for tie index in terms of NDIterator
Fixed bugs in NDIterator
cleaned nditerator.h code up
Merged in new work by Naoki on NDIterator.
Fixed missing return statement in NDIterator operator=.