Added a badly written limitedMemory function that does not work, and a functioning restrictedMemory function. See comments in code for explanation on how it works. Also modified the header to reflect new functions.