Implemented makeInverseIndex, orSearch and andSearch methods