optimized array generator, and removed prints from search classes.