first try at computing r-space density fluctuation