Given a set of 2D coordinates representing GPS waypoints, write an algorithm to find the nearest lane segment in a vectorized map.