find best route through two-dimension int array