curve: a bit of optimization
curve: jpoint addition and doubling
curve: precompute()