Added the implementation of the RLE stack