implementation of a rational number class and array in c++