similarity matrix and keyword search done