Added hmedian method