Querying Sparse Matrices for Information Retrieval