Bin using median instead of mean.