added C++ lua table functions