update subset.py finish algorithm