a tool to index word positions in a file