On Optimum Decoding of Certain Product Codes