Linear and Binary Search Algorithms Explained