Instead of using indexing for arrays in the array implementation, update the code to make use of pointer arithmetic indexing.