Program to implement linear search and binary search