improved reduce implementation
added simple histogram kernel
added histogram test