added the array reverser class