added subset sum solution