added a sanity check

When there is a new code assignment, this sanity check will validate if
the new code is orthogonal with all used code.