A memory allocation simulator written in C and ncurses