Add threaded version of equalizeHist