Yay, run-length encoding and decoding is finished! Tested with SantaClaus.txt file and it works.