Rewrite using just malloc so that MSP430s can compile the code too. Remove the set_length method, it doesn't seem very useful in real life. #1