Function that computes a median value for each bin
binMedian(x, n)
x
NumericVector
n
intiger - number of bins