Refs #10633 Added ClearMaskFlag algorithm