MemCheck v0.2

* rewrote MemCheck so it uses templates now
MemSafeClass separated

* put MemSafeClass class in separate files
+ added some comments to main