Added `bernoulli` function

* Linked fmpq_t and  mpq_class
* Added tests.