mldr_to_labels function

Label matrix of an MLD