Implementation of Run Length Encoding Technique with Preprocessing methods to improve efficiency as described in https://arxiv.org/pdf/2101.05329.pdf