added VariableCache class implemented as map<key,val>
key is hashed value of variableName+functionName+depth