COMP 15 HW 1 (Dynamic Arrays)