added monitoring of the memory and forced GC after threshold is reached
Merge branch 'master' of https://github.com/pizuricv/BayesAppPluginProject