max product
max sum 2d