algorithm: 0-1 package -- dynamic programming v1