First priliminary density plot. Seems normal
try to implement the density calculation in C. not finished.