Implemented dynamic allocation of memory for page tables.