Calculate max points line start from every point, AC