Reduction from max-3DM to max-4-partition