added tests and OpenCL code for histogram pyramids using buffers