Create check_mem.pl