add func to find row/col of max col/row index