Information encoding and data compression algorithms