DP: array partitioning into two equal sum parts