import java.util.*;

public class Memory
{
    public Memory ()
    {
        _memory = new Vector<MemoryElement>();
    }

    private Vector<MemoryElement> _memory;
}
@@ -51,110 +51,408 @@
 lic 
-Memory ()%0A    %7B%0A        _memory = new Vector%3CMemoryElement%3E();%0A    %7D%0A%0A    private Vector%3CMemoryElement
+static final long UNASSIGNED_MEMORY = 0;%0A%0A    public Memory ()%0A    %7B%0A        _memory = new HashMap%3CLong, Long%3E();%0A    %7D%0A%0A    public long getValue (long address)%0A    %7B%0A        Long v = _memory.get(address);%0A%0A        return ((v == null) ? UNASSIGNED_MEMORY : v);%0A    %7D%0A%0A    public void setValue (long address, long value)%0A    %7B%0A        _memory.put(address, value);%0A    %7D%0A%0A    private HashMap%3CLong, Long
 %3E _m

Update Memory.java