How would you implement a function to find the minimal positive integer not occurring in a given sequence?