memory simulator written in java (1 processor)