Stack like interface for array.