Add c++ code for matrix cbind