Added weighted versions of median methods