Added max memory allocation program from chapter 7