Step 6- Run Length Coding

run_L_coded = run_length_coding(cell2mat(img_One_D_vector));