Update distinctSub.cpp