C++ implementation attempt of rbind.fill