Added parzen distribution code