Convert the bool flag in Index to an uint flag variable to allow up to 32 flags
this would allow the use of index/2 to denote half the indices etc. (useful e.g. for TTtensors). Might also consider i/2-1
? e.g. for quantum state contractions A(i/2-1,j,k/2-1,j)
.