adding find the median