matrix_to_list_of_cols function

Turn a Matrix Into a List of Columns or Rows