A virtual memory simulator in Java