add linear and binary search