added xIsSubset in C++