finished the single threaded bincount