implementation of several papers related to the project. optimization with tbb and gpu.