add max_common_line_points_test.py and modify max_common_line_points.py