add k paramter to mds and variance_by_component (k=6 by default). Otherwise, it crashed when matrix has fewer than 6 columns.