Understanding Histograms and Kernel Density Estimation