add c++ and python versions of max-points-on-a-line