max product algorithm progress