stack array implementation with array resize
Queue implemented via array
Minor changes after code review