mocked out two dimensional search problem