Search a value in sorted matrix