Memory Allocation

Still not working. The selection process runs out of memory far to fast.
This points to copy taking up to much space.