find element in a sorted metrix