This task is to implement the nearest() method in GeoPandas.SpatialIndex class. https://geopandas.org/en/stable/docs/reference/api/geopandas.sindex.SpatialIndex.nearest.html#geopandas.sindex.SpatialIndex.nearest