Gives median of numbers