Use Point struct instead of std::pair<double,double>