Implement Linear And Binary Search Algorithm Python