Initial implementation of point arithmetic