Update m2elf.pl

memory allocation can now be called on command line