Edited mention of 2d array output to also include possiblity of sparse matrix