refactored. changed configuration mode, enhanced heap behaviour, statistics now work also if delete() and realloc() are called.