fix an alg bug
if budget is not enough, return False
Merge pull request #13 from qiaoshun8888/master

fix an alg bug