Basic search algorithms in dart