Added shared Utility function source files for C++ and Java