Memory Reducer

Added an object pool to recycle so we won't keep creating new objects infinitely. Also wrapped it in a self-executing function, which is good form.