added functionCache.cpp same as VariableCache #TODO