a little progress made on customized Rational class
further development of Rational class (more methods: __eq__, __ne__, __int__, __float__, __repr__)
fixed tests for ac_train
added many more Rational methods--sufficient to make ac_encode work correctly