Deleted initial values out of check_node and used reset state. controller now bypasses code_rate matrix_calculation if same code_rate as previous codeword