Deleted unused code.
Implemented logical indexing with vMAT_FlexIndexes.