Convert 2D grid into graph - C#