week2 stack array resize impl