Arrays and Algorithms