memory: add functions for the parallel init/destruction of an array.

Only performance tests added so far, proper testing and documentation still to be done.