Up to the point of determing grain boundary

assign each point to grains