Finished the major refactoring of the GPU histogram generator. It now uses the GPU class.