Added a class to start handling MDS on a hierarchy of representative documents