PEG-like algorithm for LDPC codes