Moved totalQN code to mps.cc.
Changed definition of IndexVal and IQIndexVal to inherit from Index and IQIndex, respectively.
Fixed deprimed template methods. Index version now includes optional IndexType argument. Added tensor version allowing one to specify a particular index.