A C++ implementation of different deep models