added new array functions to project4