Optimum LDPC decoder : a memory architecture problem