Added a range encoder class.