Update nested.py

Change combine method to not produce Cartesian Product.