added async task for the search algorithm

fixed bug - added async task for the search - added Filter class