Updata max pooling C++ source file and the slow version of matlab file