add operator functions in coord.hpp