Added some flexibility to show_2d_mat; added connection intersect between BGD and corrSSI4