Memory Allocation

Narrowed down to in Selection and GenToPop functions.