pub fn gen_code(input: &str, max_memory: usize) -> (String, usize)
Generates code for the given text. Uses up to the max_memory. Reccomended max is 15. Returns the code as well as the memory actually used