Finished smallestMissingPositiveInteger