Update MemSim.java

Added a hash map so we do not add pages to the page table that exist even though the page was removed from memory