implemented basic virtual memory manager