- mdmr(): can manually specify list.perms;
- mdmr(): fix memory and saving issue for Fperms