Refactored allocate_memory out of main.c