Reorganize memory allocation to pass test case 5.