get cell index for point