Remove remainders of none-existing memory debugging

valgrind should do the job anyway
Remove more dead code
Use std::map instead of ... something ...
Remove unused homegrown stack
Remove unused homegrown tree
Drop unused testcase