Assignment 1, reverse array