Here is my code, I had a little trouble using the BigIntegersLibrary, but Ken helped me and made everything easier.
https://github.com/marinaruelas/WSQ/blob/master/wsq09
Wsq09 by marinaruelas is licensed under a Creative Commons Attribution 4.0 International License.