Inverse Match Algorithm