Added stub to compress blank columns out of the matrix. Updated prepare_queries for this as it returns a lookup matrix