Add solution to 'search a 2D matrix'.