creates linear search and signature for binary search