Add c++ functions for matrix row bind