Medoid splits for efficient random forests in metric spaces