game_spaces: add Rational and Polynomial classes

do some symbolic calculations