implemented basic cubic grid analysis
dens.dat output is now sparse