get_density function

Function to get the density of points with value TRUE in the (x,y) plot