changed load to return cache[set][way * blockSize + blockOffset].  Also changed getMask to return 0 for input size of 0.