wrote linear and binary search entry