Added reverse method in interface and array implementation