Comment generate.c
Implement search algorithm.