ar71xx: add library code for RLE decoding