matrix_2_adj_list function

Convert adjacency matrix to a list.