Find Shortest Safe Route In A Matrix