matching n2, mcc, sad  compilado