Algorithms for Optimally Arranging Multicore Memory Structures. (3rd June 2010)