add

Adds two points, or doubles p1 when p1 == p2. Returns null for the point at infinity, i.e. when the two points are inverses of each other (same x, y values sum to 0 mod p).