Added road index
Updated naive algorithm