Added array number checking function to find the smallest number that is greater than the argument number, no bugs