Added Max-Product Alg and added some Set public methods