added sum subset algorithm