search algorithm basic implementation added