recursive median
merge median