Create containsVariables() in Pair class
This functions check if exists some variable term in the pair