getConnctedSets returns a list of connected data sets as numeric data frames D
with three columns (x, factor 1, factor 2) or a n*m matrix M,
where the n rows correspond to n levels of factor 2 and m columns
correspond to m levels of factor the respective factors.
Output as data frame or matrix, depending on input.