A minorly cleaned up version of my not entirely functional solution to an array search function exercise