updated the setMemoryAllocation method in the view to take int[] input instead of HashMap<String, String>