map_points_to_cells function

Map point coordinates to cell indices