void printMatrix(List<List> m) { for (List row in m) { String s = ''; for (var e in row) { s += '$e '; } print(s); } }