Added SearchDB class for the search algorhitm