working on hw0, inverse index