Layered Decoding of Non-Layered LDPC codes