changed constructor of PlmAlg to include boolmask