lib: update bn.js and elliptic