solution for search matrxi