new sum product algorithm file