Added cap_used generation to MemProblem.
Removed comments.
Finish adapting randomemex to MemProblem.