Update subset.cpp