Added checknan keyword argument to wmedian