adding search algorithm, tring it out on num_comp task