Added linear and binary search.