refactor
removed helper, bignum to lib
solved 27, 28, 29, 30