Create boot_mem.c

Nothing original here. Copypasted from http://wiki.osdev.org/Detecting_Memory_(x86)#Getting_an_E820_Memory_Map and reworked it so that it gives us the longest memory region. Also assumed 64 bit support.