Added implementation of physical memory management