added search algorithm thats fucking cool