Solving Multidimensional 0-1 Knapsack Problem by P Systems with Input and Active Membranes