fixed indexMask bug for n-way associativity