subset with target sum implementation