Made binCounts() and binMeans() faster by using is.unsorted().