Assignment4: Array Algorithms