Adds first pass at arithemetic scalar encoder.