Move leo_mem() to its own source file.

This commit adds leornian_memory.c, a source file for all memory related
tasks. Although there is currently only a single memory function,
leo_mem(), this function will fragmented in a future version, and
additional memory functions will be added.