add reverse_iterate method to array class