Added function `get_num_den` in `rational.cpp`

`get_num_den()` takes a rational and returns its `num` and `den`
in  the form of `RCP Integer`.
This function will be used to simplify `log(a/b) = log(a) - log(b)`