Contains functionality to search specified number of max integers in array