Fixed buggy "insert" method, reduced map memory usage and fixed indenting.
Moved gdt_set_kernel_stack call to correct location.
Cast when deleting to ensure destructor is run.
Moved check that program is being loaed into userspace to before loading actually happens.
Rewrote to_upper to reduce number of memory allocations.
Deallocate memory even when empty.
VMM fixes.