Calculates the mask penalty for a matrix.
@param ByteMatrix $matrix @return integer
See Implementation
Calculates the mask penalty for a matrix.
@param ByteMatrix $matrix @return integer