add 2-dimensional kernel density estimator (ksdensity2d.m) which supports weighted data