Implemented initialize and clear functions on GarbageCollector class