Fixed gc implementation, added markers to memory area