remove big.Int pointers and news
used fixed-size arrays instead of slices