add the basic search method BF algorithom