pub fn knapsack_small_quantity<W, V>(cap: W, ws: &[W], vs: &[V]) -> Vwhere W: Copy + Add<Output = W> + Ord + Zero, V: Copy + Add<Output = V> + Ord + Zero,
要素数が小さいナップサック問題
Time complexity $O(n 2 ^ {n / 2})$
Space complexity $O(2 ^ {n / 2})$