Implements layered decoding using the sum-product-algorithm. Codes are input as a .txt file in A-list format.