Classes of multiple decision functions strongly controlling FWER and FDR