Corrected the issue ,
the decoder does correct single errors of the specific matrix used.
But it is unable to correct for all single bit errors.
If the code word is correct then the algorithm finishes in one iteration.
other maximum 30 iterations are used.