a Pure port of Q+Q, Rob Hubbard's rational number library
