Implement some array operations