How much efficient is the histogram calculation provided by OpenGL(glHistogram)? Is there any better way?