C++ Implementation of CVPR10 and ICCV13