This is a program for binary search using an array.