MATLAB implementation of variable rate LDPC