Given an array that is sorted so that the numbers increase until there is a peak and then they decrease, write an algorithm to search for a number in the array. Design a system that takes in files and passes them along to a different system to be processed.