subset sum,fix bug in mathdoc