adding two functions that flush the cache and the page table entries when a new process comes in