base conversion by bigInteger