Created a basic text compression algorithm in Ruby