separating rows and cols to 2 lists instead of one matrix